﻿//***********************************************************************************
// 文件名称：CustomTime
// 功能描述：自定义时间类
// 数据表：
// 作者：liuxiaohu
// 日期：2017/3/13 10:26:20
// 修改记录：
//***********************************************************************************

using System;

namespace GameServer
{
    /// <summary>
    /// 自定义时间类
    /// </summary>
    public class CustomTime
    {
        /// <summary>
        /// 年
        /// </summary>
        public Int32 Year { get; set; }

        /// <summary>
        /// 月
        /// </summary>
        public Int32 Month { get; set; }

        /// <summary>
        /// 一个月中的某天
        /// </summary>
        public Int32 Day { get; set; }

        /// <summary>
        /// 周几
        /// </summary>
        public Int32 WeekDay { get; set; }

        /// <summary>
        /// 小时
        /// </summary>
        public Int32 Hour { get; set; }

        /// <summary>
        /// 分钟
        /// </summary>
        public Int32 Minute { get; set; }

        /// <summary>
        /// 秒数
        /// </summary>
        public Int32 Second { get; set; }

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="year">年</param>
        /// <param name="month">月</param>
        /// <param name="day">一个月中的某天</param>
        /// <param name="weekDay">周几</param>
        /// <param name="hour">小时</param>
        /// <param name="minute">分钟</param>
        /// <param name="second">秒</param>
        public CustomTime(Int32 year, Int32 month, Int32 day, Int32 weekDay, Int32 hour, Int32 minute, Int32 second)
        {
            this.Year = year;
            this.Month = month;
            this.Day = day;
            this.WeekDay = weekDay;
            this.Hour = hour;
            this.Minute = minute;
            this.Second = second;
        }
    }
}
